package com.c8a.validation.annotation;

import com.c8a.validation.utils.valid.AnnValidation;

import javax.validation.Constraint;
import javax.validation.Payload;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @Author C8A
 * @Date 2022-04-23 22:24
 * @Email 1912327276@qq.com
 */
@Target({FIELD})
@Retention(RUNTIME)
@Documented
@Constraint(validatedBy = AnnValidation.class)
public @interface IsNotEmpty {
    String message() default "字符串不能为空";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
